#!/user/bin/env python
# -*- coding: utf-8 -*-
''' 
Author: Sjy
LastEditTime: 2024-08-27 11:18:57
Description: 全局变量管理模块 globalvar.py
'''

__all__= []

global _VARS
_VARS = {}

def init():
    global _VARS
    _VARS ={}

def set_value(name, value):
    global _VARS
    _VARS[name]= value
def get_value(name, defValue=None):
    try:
        return _VARS[name]
    except KeyError:
        return defValue
    
    